package com.blogSystem.article.dao;

import com.blogSystem.article.pojo.Article;
import com.blogSystem.article.pojo.Thumbs;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ThumbsMapper {

    int insert(Thumbs thumbs);
    int deleteById(String id);
    int deleteByArticleId(String article_id);
    int deleteByIds(List<String> list);
    List<Thumbs> selectAll();
    Thumbs selectById(String id);
    List<Thumbs> selectByUserId(String user_id);
    List<Thumbs> selectByArticleId(String article_id);
    Thumbs selectByUserIdAndArticleId(String user_id,String article_id);
    int update(Thumbs thumbs);

}
